package com.suyuan.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class NewtransitbatchExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public NewtransitbatchExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTransitbatchidIsNull() {
            addCriterion("transitBatchId is null");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidIsNotNull() {
            addCriterion("transitBatchId is not null");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidEqualTo(Integer value) {
            addCriterion("transitBatchId =", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidNotEqualTo(Integer value) {
            addCriterion("transitBatchId <>", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidGreaterThan(Integer value) {
            addCriterion("transitBatchId >", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidGreaterThanOrEqualTo(Integer value) {
            addCriterion("transitBatchId >=", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidLessThan(Integer value) {
            addCriterion("transitBatchId <", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidLessThanOrEqualTo(Integer value) {
            addCriterion("transitBatchId <=", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidIn(List<Integer> values) {
            addCriterion("transitBatchId in", values, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidNotIn(List<Integer> values) {
            addCriterion("transitBatchId not in", values, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidBetween(Integer value1, Integer value2) {
            addCriterion("transitBatchId between", value1, value2, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidNotBetween(Integer value1, Integer value2) {
            addCriterion("transitBatchId not between", value1, value2, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andRouteidIsNull() {
            addCriterion("routeId is null");
            return (Criteria) this;
        }

        public Criteria andRouteidIsNotNull() {
            addCriterion("routeId is not null");
            return (Criteria) this;
        }

        public Criteria andRouteidEqualTo(Integer value) {
            addCriterion("routeId =", value, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidNotEqualTo(Integer value) {
            addCriterion("routeId <>", value, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidGreaterThan(Integer value) {
            addCriterion("routeId >", value, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidGreaterThanOrEqualTo(Integer value) {
            addCriterion("routeId >=", value, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidLessThan(Integer value) {
            addCriterion("routeId <", value, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidLessThanOrEqualTo(Integer value) {
            addCriterion("routeId <=", value, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidIn(List<Integer> values) {
            addCriterion("routeId in", values, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidNotIn(List<Integer> values) {
            addCriterion("routeId not in", values, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidBetween(Integer value1, Integer value2) {
            addCriterion("routeId between", value1, value2, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidNotBetween(Integer value1, Integer value2) {
            addCriterion("routeId not between", value1, value2, "routeid");
            return (Criteria) this;
        }

        public Criteria andStarttimeIsNull() {
            addCriterion("startTime is null");
            return (Criteria) this;
        }

        public Criteria andStarttimeIsNotNull() {
            addCriterion("startTime is not null");
            return (Criteria) this;
        }

        public Criteria andStarttimeEqualTo(Date value) {
            addCriterion("startTime =", value, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeNotEqualTo(Date value) {
            addCriterion("startTime <>", value, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeGreaterThan(Date value) {
            addCriterion("startTime >", value, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("startTime >=", value, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeLessThan(Date value) {
            addCriterion("startTime <", value, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeLessThanOrEqualTo(Date value) {
            addCriterion("startTime <=", value, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeIn(List<Date> values) {
            addCriterion("startTime in", values, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeNotIn(List<Date> values) {
            addCriterion("startTime not in", values, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeBetween(Date value1, Date value2) {
            addCriterion("startTime between", value1, value2, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeNotBetween(Date value1, Date value2) {
            addCriterion("startTime not between", value1, value2, "starttime");
            return (Criteria) this;
        }

        public Criteria andEndtimeIsNull() {
            addCriterion("endTime is null");
            return (Criteria) this;
        }

        public Criteria andEndtimeIsNotNull() {
            addCriterion("endTime is not null");
            return (Criteria) this;
        }

        public Criteria andEndtimeEqualTo(Date value) {
            addCriterion("endTime =", value, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeNotEqualTo(Date value) {
            addCriterion("endTime <>", value, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeGreaterThan(Date value) {
            addCriterion("endTime >", value, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("endTime >=", value, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeLessThan(Date value) {
            addCriterion("endTime <", value, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeLessThanOrEqualTo(Date value) {
            addCriterion("endTime <=", value, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeIn(List<Date> values) {
            addCriterion("endTime in", values, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeNotIn(List<Date> values) {
            addCriterion("endTime not in", values, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeBetween(Date value1, Date value2) {
            addCriterion("endTime between", value1, value2, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeNotBetween(Date value1, Date value2) {
            addCriterion("endTime not between", value1, value2, "endtime");
            return (Criteria) this;
        }

        public Criteria andCaridIsNull() {
            addCriterion("carId is null");
            return (Criteria) this;
        }

        public Criteria andCaridIsNotNull() {
            addCriterion("carId is not null");
            return (Criteria) this;
        }

        public Criteria andCaridEqualTo(Integer value) {
            addCriterion("carId =", value, "carid");
            return (Criteria) this;
        }

        public Criteria andCaridNotEqualTo(Integer value) {
            addCriterion("carId <>", value, "carid");
            return (Criteria) this;
        }

        public Criteria andCaridGreaterThan(Integer value) {
            addCriterion("carId >", value, "carid");
            return (Criteria) this;
        }

        public Criteria andCaridGreaterThanOrEqualTo(Integer value) {
            addCriterion("carId >=", value, "carid");
            return (Criteria) this;
        }

        public Criteria andCaridLessThan(Integer value) {
            addCriterion("carId <", value, "carid");
            return (Criteria) this;
        }

        public Criteria andCaridLessThanOrEqualTo(Integer value) {
            addCriterion("carId <=", value, "carid");
            return (Criteria) this;
        }

        public Criteria andCaridIn(List<Integer> values) {
            addCriterion("carId in", values, "carid");
            return (Criteria) this;
        }

        public Criteria andCaridNotIn(List<Integer> values) {
            addCriterion("carId not in", values, "carid");
            return (Criteria) this;
        }

        public Criteria andCaridBetween(Integer value1, Integer value2) {
            addCriterion("carId between", value1, value2, "carid");
            return (Criteria) this;
        }

        public Criteria andCaridNotBetween(Integer value1, Integer value2) {
            addCriterion("carId not between", value1, value2, "carid");
            return (Criteria) this;
        }

        public Criteria andCompidIsNull() {
            addCriterion("compId is null");
            return (Criteria) this;
        }

        public Criteria andCompidIsNotNull() {
            addCriterion("compId is not null");
            return (Criteria) this;
        }

        public Criteria andCompidEqualTo(Integer value) {
            addCriterion("compId =", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidNotEqualTo(Integer value) {
            addCriterion("compId <>", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidGreaterThan(Integer value) {
            addCriterion("compId >", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidGreaterThanOrEqualTo(Integer value) {
            addCriterion("compId >=", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidLessThan(Integer value) {
            addCriterion("compId <", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidLessThanOrEqualTo(Integer value) {
            addCriterion("compId <=", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidIn(List<Integer> values) {
            addCriterion("compId in", values, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidNotIn(List<Integer> values) {
            addCriterion("compId not in", values, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidBetween(Integer value1, Integer value2) {
            addCriterion("compId between", value1, value2, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidNotBetween(Integer value1, Integer value2) {
            addCriterion("compId not between", value1, value2, "compid");
            return (Criteria) this;
        }

        public Criteria andStartstationidIsNull() {
            addCriterion("startStationId is null");
            return (Criteria) this;
        }

        public Criteria andStartstationidIsNotNull() {
            addCriterion("startStationId is not null");
            return (Criteria) this;
        }

        public Criteria andStartstationidEqualTo(Integer value) {
            addCriterion("startStationId =", value, "startstationid");
            return (Criteria) this;
        }

        public Criteria andStartstationidNotEqualTo(Integer value) {
            addCriterion("startStationId <>", value, "startstationid");
            return (Criteria) this;
        }

        public Criteria andStartstationidGreaterThan(Integer value) {
            addCriterion("startStationId >", value, "startstationid");
            return (Criteria) this;
        }

        public Criteria andStartstationidGreaterThanOrEqualTo(Integer value) {
            addCriterion("startStationId >=", value, "startstationid");
            return (Criteria) this;
        }

        public Criteria andStartstationidLessThan(Integer value) {
            addCriterion("startStationId <", value, "startstationid");
            return (Criteria) this;
        }

        public Criteria andStartstationidLessThanOrEqualTo(Integer value) {
            addCriterion("startStationId <=", value, "startstationid");
            return (Criteria) this;
        }

        public Criteria andStartstationidIn(List<Integer> values) {
            addCriterion("startStationId in", values, "startstationid");
            return (Criteria) this;
        }

        public Criteria andStartstationidNotIn(List<Integer> values) {
            addCriterion("startStationId not in", values, "startstationid");
            return (Criteria) this;
        }

        public Criteria andStartstationidBetween(Integer value1, Integer value2) {
            addCriterion("startStationId between", value1, value2, "startstationid");
            return (Criteria) this;
        }

        public Criteria andStartstationidNotBetween(Integer value1, Integer value2) {
            addCriterion("startStationId not between", value1, value2, "startstationid");
            return (Criteria) this;
        }

        public Criteria andEndstationidIsNull() {
            addCriterion("endStationId is null");
            return (Criteria) this;
        }

        public Criteria andEndstationidIsNotNull() {
            addCriterion("endStationId is not null");
            return (Criteria) this;
        }

        public Criteria andEndstationidEqualTo(Integer value) {
            addCriterion("endStationId =", value, "endstationid");
            return (Criteria) this;
        }

        public Criteria andEndstationidNotEqualTo(Integer value) {
            addCriterion("endStationId <>", value, "endstationid");
            return (Criteria) this;
        }

        public Criteria andEndstationidGreaterThan(Integer value) {
            addCriterion("endStationId >", value, "endstationid");
            return (Criteria) this;
        }

        public Criteria andEndstationidGreaterThanOrEqualTo(Integer value) {
            addCriterion("endStationId >=", value, "endstationid");
            return (Criteria) this;
        }

        public Criteria andEndstationidLessThan(Integer value) {
            addCriterion("endStationId <", value, "endstationid");
            return (Criteria) this;
        }

        public Criteria andEndstationidLessThanOrEqualTo(Integer value) {
            addCriterion("endStationId <=", value, "endstationid");
            return (Criteria) this;
        }

        public Criteria andEndstationidIn(List<Integer> values) {
            addCriterion("endStationId in", values, "endstationid");
            return (Criteria) this;
        }

        public Criteria andEndstationidNotIn(List<Integer> values) {
            addCriterion("endStationId not in", values, "endstationid");
            return (Criteria) this;
        }

        public Criteria andEndstationidBetween(Integer value1, Integer value2) {
            addCriterion("endStationId between", value1, value2, "endstationid");
            return (Criteria) this;
        }

        public Criteria andEndstationidNotBetween(Integer value1, Integer value2) {
            addCriterion("endStationId not between", value1, value2, "endstationid");
            return (Criteria) this;
        }

        public Criteria andStartstationnameIsNull() {
            addCriterion("startStationName is null");
            return (Criteria) this;
        }

        public Criteria andStartstationnameIsNotNull() {
            addCriterion("startStationName is not null");
            return (Criteria) this;
        }

        public Criteria andStartstationnameEqualTo(String value) {
            addCriterion("startStationName =", value, "startstationname");
            return (Criteria) this;
        }

        public Criteria andStartstationnameNotEqualTo(String value) {
            addCriterion("startStationName <>", value, "startstationname");
            return (Criteria) this;
        }

        public Criteria andStartstationnameGreaterThan(String value) {
            addCriterion("startStationName >", value, "startstationname");
            return (Criteria) this;
        }

        public Criteria andStartstationnameGreaterThanOrEqualTo(String value) {
            addCriterion("startStationName >=", value, "startstationname");
            return (Criteria) this;
        }

        public Criteria andStartstationnameLessThan(String value) {
            addCriterion("startStationName <", value, "startstationname");
            return (Criteria) this;
        }

        public Criteria andStartstationnameLessThanOrEqualTo(String value) {
            addCriterion("startStationName <=", value, "startstationname");
            return (Criteria) this;
        }

        public Criteria andStartstationnameLike(String value) {
            addCriterion("startStationName like", value, "startstationname");
            return (Criteria) this;
        }

        public Criteria andStartstationnameNotLike(String value) {
            addCriterion("startStationName not like", value, "startstationname");
            return (Criteria) this;
        }

        public Criteria andStartstationnameIn(List<String> values) {
            addCriterion("startStationName in", values, "startstationname");
            return (Criteria) this;
        }

        public Criteria andStartstationnameNotIn(List<String> values) {
            addCriterion("startStationName not in", values, "startstationname");
            return (Criteria) this;
        }

        public Criteria andStartstationnameBetween(String value1, String value2) {
            addCriterion("startStationName between", value1, value2, "startstationname");
            return (Criteria) this;
        }

        public Criteria andStartstationnameNotBetween(String value1, String value2) {
            addCriterion("startStationName not between", value1, value2, "startstationname");
            return (Criteria) this;
        }

        public Criteria andEndstationnameIsNull() {
            addCriterion("endStationName is null");
            return (Criteria) this;
        }

        public Criteria andEndstationnameIsNotNull() {
            addCriterion("endStationName is not null");
            return (Criteria) this;
        }

        public Criteria andEndstationnameEqualTo(String value) {
            addCriterion("endStationName =", value, "endstationname");
            return (Criteria) this;
        }

        public Criteria andEndstationnameNotEqualTo(String value) {
            addCriterion("endStationName <>", value, "endstationname");
            return (Criteria) this;
        }

        public Criteria andEndstationnameGreaterThan(String value) {
            addCriterion("endStationName >", value, "endstationname");
            return (Criteria) this;
        }

        public Criteria andEndstationnameGreaterThanOrEqualTo(String value) {
            addCriterion("endStationName >=", value, "endstationname");
            return (Criteria) this;
        }

        public Criteria andEndstationnameLessThan(String value) {
            addCriterion("endStationName <", value, "endstationname");
            return (Criteria) this;
        }

        public Criteria andEndstationnameLessThanOrEqualTo(String value) {
            addCriterion("endStationName <=", value, "endstationname");
            return (Criteria) this;
        }

        public Criteria andEndstationnameLike(String value) {
            addCriterion("endStationName like", value, "endstationname");
            return (Criteria) this;
        }

        public Criteria andEndstationnameNotLike(String value) {
            addCriterion("endStationName not like", value, "endstationname");
            return (Criteria) this;
        }

        public Criteria andEndstationnameIn(List<String> values) {
            addCriterion("endStationName in", values, "endstationname");
            return (Criteria) this;
        }

        public Criteria andEndstationnameNotIn(List<String> values) {
            addCriterion("endStationName not in", values, "endstationname");
            return (Criteria) this;
        }

        public Criteria andEndstationnameBetween(String value1, String value2) {
            addCriterion("endStationName between", value1, value2, "endstationname");
            return (Criteria) this;
        }

        public Criteria andEndstationnameNotBetween(String value1, String value2) {
            addCriterion("endStationName not between", value1, value2, "endstationname");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}